import request from '@/utils/request'

// 查询Child Info列表
export function listChild_info(query) {
  return request({
    url: '/system/child_info/list',
    method: 'get',
    params: query
  })
}

export function list_all_Child_info(query) {
  return request({
    url: '/system/child_info/listAll',
    method: 'get',
    params: query
  })
}

// 查询Child Info详细
export function getChild_info(childId) {
  return request({
    url: '/system/child_info/' + childId,
    method: 'get'
  })
}

// 新增Child Info
export function addChild_info(data) {
  return request({
    url: '/system/child_info',
    method: 'post',
    data: data
  })
}

// 修改Child Info
export function updateChild_info(data) {
  return request({
    url: '/system/child_info',
    method: 'put',
    data: data
  })
}

// 删除Child Info
export function delChild_info(childId) {
  return request({
    url: '/system/child_info/' + childId,
    method: 'delete'
  })
}
